{% extends 'base.html' %}

{% block bt %}
	<h1>编辑用户</h1>
{% endblock %}
{% block bg %}
	<form action="" method="post">
	 {% csrf_token %}
		<div class="form-group">
			<label for="title">用户姓名</label>
			<input type="text" value="{{ user.username }}" class="form-control" id="title" name="username">
		</div>
		<div class="form-group">
			<label for="price">用户密码</label>
			<input type="text" value="{{ user.password }}" class="form-control" id="price" name="password">
		</div>
		<div class="form-group">
			<label for="pub_date">用户手机号</label>
			<input type="text" value="{{ user.phone_number }}" class="form-control" id="pub_date" name="phone_number">
		</div>
		<div class="form-group">
			<label for="pub_date">家庭住址</label>
			<input type="text" value="{{ user_d.addr }}" class="form-control" id="pub_date" name="addr">
		</div>
		<p>性别:
			<select name="sex" id="" class="form-control">
				<option value="男" selected>男</option>
				<option value="女">女</option>
			</select>
		</p>
{#	   <p>#}
{#	        {% for i in part_n %}#}
{#		      <div class="form-group">#}
{#			<label for="pub_date">角色</label>#}
{#			<input type="text" value="{{ i.name }}" class="form-control" id="pub_date" name="part_name">#}
{#				</div>#}
{#	        {% endfor %}#}
{##}
{#        </p>#}
		<button type="submit" class="btn btn-success">提交</button>
	</form>
{% endblock %}
